package com.autohome.wz.business.order.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CfwPaPetroOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CfwPaPetroOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrdernumIsNull() {
            addCriterion("ordernum is null");
            return (Criteria) this;
        }

        public Criteria andOrdernumIsNotNull() {
            addCriterion("ordernum is not null");
            return (Criteria) this;
        }

        public Criteria andOrdernumEqualTo(String value) {
            addCriterion("ordernum =", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotEqualTo(String value) {
            addCriterion("ordernum <>", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumGreaterThan(String value) {
            addCriterion("ordernum >", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumGreaterThanOrEqualTo(String value) {
            addCriterion("ordernum >=", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLessThan(String value) {
            addCriterion("ordernum <", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLessThanOrEqualTo(String value) {
            addCriterion("ordernum <=", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLike(String value) {
            addCriterion("ordernum like", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotLike(String value) {
            addCriterion("ordernum not like", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumIn(List<String> values) {
            addCriterion("ordernum in", values, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotIn(List<String> values) {
            addCriterion("ordernum not in", values, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumBetween(String value1, String value2) {
            addCriterion("ordernum between", value1, value2, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotBetween(String value1, String value2) {
            addCriterion("ordernum not between", value1, value2, "ordernum");
            return (Criteria) this;
        }

        public Criteria andStationIdIsNull() {
            addCriterion("station_id is null");
            return (Criteria) this;
        }

        public Criteria andStationIdIsNotNull() {
            addCriterion("station_id is not null");
            return (Criteria) this;
        }

        public Criteria andStationIdEqualTo(Integer value) {
            addCriterion("station_id =", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotEqualTo(Integer value) {
            addCriterion("station_id <>", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdGreaterThan(Integer value) {
            addCriterion("station_id >", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("station_id >=", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdLessThan(Integer value) {
            addCriterion("station_id <", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdLessThanOrEqualTo(Integer value) {
            addCriterion("station_id <=", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdIn(List<Integer> values) {
            addCriterion("station_id in", values, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotIn(List<Integer> values) {
            addCriterion("station_id not in", values, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdBetween(Integer value1, Integer value2) {
            addCriterion("station_id between", value1, value2, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotBetween(Integer value1, Integer value2) {
            addCriterion("station_id not between", value1, value2, "stationId");
            return (Criteria) this;
        }

        public Criteria andTotalPriceIsNull() {
            addCriterion("total_price is null");
            return (Criteria) this;
        }

        public Criteria andTotalPriceIsNotNull() {
            addCriterion("total_price is not null");
            return (Criteria) this;
        }

        public Criteria andTotalPriceEqualTo(BigDecimal value) {
            addCriterion("total_price =", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotEqualTo(BigDecimal value) {
            addCriterion("total_price <>", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceGreaterThan(BigDecimal value) {
            addCriterion("total_price >", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_price >=", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceLessThan(BigDecimal value) {
            addCriterion("total_price <", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_price <=", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceIn(List<BigDecimal> values) {
            addCriterion("total_price in", values, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotIn(List<BigDecimal> values) {
            addCriterion("total_price not in", values, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_price between", value1, value2, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_price not between", value1, value2, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberIsNull() {
            addCriterion("transaction_number is null");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberIsNotNull() {
            addCriterion("transaction_number is not null");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberEqualTo(String value) {
            addCriterion("transaction_number =", value, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberNotEqualTo(String value) {
            addCriterion("transaction_number <>", value, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberGreaterThan(String value) {
            addCriterion("transaction_number >", value, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberGreaterThanOrEqualTo(String value) {
            addCriterion("transaction_number >=", value, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberLessThan(String value) {
            addCriterion("transaction_number <", value, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberLessThanOrEqualTo(String value) {
            addCriterion("transaction_number <=", value, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberLike(String value) {
            addCriterion("transaction_number like", value, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberNotLike(String value) {
            addCriterion("transaction_number not like", value, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberIn(List<String> values) {
            addCriterion("transaction_number in", values, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberNotIn(List<String> values) {
            addCriterion("transaction_number not in", values, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberBetween(String value1, String value2) {
            addCriterion("transaction_number between", value1, value2, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberNotBetween(String value1, String value2) {
            addCriterion("transaction_number not between", value1, value2, "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtIsNull() {
            addCriterion("supplier_discount_amt is null");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtIsNotNull() {
            addCriterion("supplier_discount_amt is not null");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtEqualTo(BigDecimal value) {
            addCriterion("supplier_discount_amt =", value, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtNotEqualTo(BigDecimal value) {
            addCriterion("supplier_discount_amt <>", value, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtGreaterThan(BigDecimal value) {
            addCriterion("supplier_discount_amt >", value, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("supplier_discount_amt >=", value, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtLessThan(BigDecimal value) {
            addCriterion("supplier_discount_amt <", value, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtLessThanOrEqualTo(BigDecimal value) {
            addCriterion("supplier_discount_amt <=", value, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtIn(List<BigDecimal> values) {
            addCriterion("supplier_discount_amt in", values, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtNotIn(List<BigDecimal> values) {
            addCriterion("supplier_discount_amt not in", values, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("supplier_discount_amt between", value1, value2, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andSupplierDiscountAmtNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("supplier_discount_amt not between", value1, value2, "supplierDiscountAmt");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeIsNull() {
            addCriterion("info_service_fee is null");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeIsNotNull() {
            addCriterion("info_service_fee is not null");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeEqualTo(BigDecimal value) {
            addCriterion("info_service_fee =", value, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeNotEqualTo(BigDecimal value) {
            addCriterion("info_service_fee <>", value, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeGreaterThan(BigDecimal value) {
            addCriterion("info_service_fee >", value, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("info_service_fee >=", value, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeLessThan(BigDecimal value) {
            addCriterion("info_service_fee <", value, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("info_service_fee <=", value, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeIn(List<BigDecimal> values) {
            addCriterion("info_service_fee in", values, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeNotIn(List<BigDecimal> values) {
            addCriterion("info_service_fee not in", values, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("info_service_fee between", value1, value2, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andInfoServiceFeeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("info_service_fee not between", value1, value2, "infoServiceFee");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtIsNull() {
            addCriterion("discount_amt is null");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtIsNotNull() {
            addCriterion("discount_amt is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtEqualTo(BigDecimal value) {
            addCriterion("discount_amt =", value, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtNotEqualTo(BigDecimal value) {
            addCriterion("discount_amt <>", value, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtGreaterThan(BigDecimal value) {
            addCriterion("discount_amt >", value, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_amt >=", value, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtLessThan(BigDecimal value) {
            addCriterion("discount_amt <", value, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_amt <=", value, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtIn(List<BigDecimal> values) {
            addCriterion("discount_amt in", values, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtNotIn(List<BigDecimal> values) {
            addCriterion("discount_amt not in", values, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_amt between", value1, value2, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountAmtNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_amt not between", value1, value2, "discountAmt");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoIsNull() {
            addCriterion("discount_batch_no is null");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoIsNotNull() {
            addCriterion("discount_batch_no is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoEqualTo(String value) {
            addCriterion("discount_batch_no =", value, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoNotEqualTo(String value) {
            addCriterion("discount_batch_no <>", value, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoGreaterThan(String value) {
            addCriterion("discount_batch_no >", value, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoGreaterThanOrEqualTo(String value) {
            addCriterion("discount_batch_no >=", value, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoLessThan(String value) {
            addCriterion("discount_batch_no <", value, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoLessThanOrEqualTo(String value) {
            addCriterion("discount_batch_no <=", value, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoLike(String value) {
            addCriterion("discount_batch_no like", value, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoNotLike(String value) {
            addCriterion("discount_batch_no not like", value, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoIn(List<String> values) {
            addCriterion("discount_batch_no in", values, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoNotIn(List<String> values) {
            addCriterion("discount_batch_no not in", values, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoBetween(String value1, String value2) {
            addCriterion("discount_batch_no between", value1, value2, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoNotBetween(String value1, String value2) {
            addCriterion("discount_batch_no not between", value1, value2, "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNull() {
            addCriterion("coupon_name is null");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNotNull() {
            addCriterion("coupon_name is not null");
            return (Criteria) this;
        }

        public Criteria andCouponNameEqualTo(String value) {
            addCriterion("coupon_name =", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotEqualTo(String value) {
            addCriterion("coupon_name <>", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThan(String value) {
            addCriterion("coupon_name >", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_name >=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThan(String value) {
            addCriterion("coupon_name <", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThanOrEqualTo(String value) {
            addCriterion("coupon_name <=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLike(String value) {
            addCriterion("coupon_name like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotLike(String value) {
            addCriterion("coupon_name not like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameIn(List<String> values) {
            addCriterion("coupon_name in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotIn(List<String> values) {
            addCriterion("coupon_name not in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameBetween(String value1, String value2) {
            addCriterion("coupon_name between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotBetween(String value1, String value2) {
            addCriterion("coupon_name not between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtIsNull() {
            addCriterion("coupon_face_amt is null");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtIsNotNull() {
            addCriterion("coupon_face_amt is not null");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtEqualTo(BigDecimal value) {
            addCriterion("coupon_face_amt =", value, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtNotEqualTo(BigDecimal value) {
            addCriterion("coupon_face_amt <>", value, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtGreaterThan(BigDecimal value) {
            addCriterion("coupon_face_amt >", value, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_face_amt >=", value, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtLessThan(BigDecimal value) {
            addCriterion("coupon_face_amt <", value, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtLessThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_face_amt <=", value, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtIn(List<BigDecimal> values) {
            addCriterion("coupon_face_amt in", values, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtNotIn(List<BigDecimal> values) {
            addCriterion("coupon_face_amt not in", values, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_face_amt between", value1, value2, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andCouponFaceAmtNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_face_amt not between", value1, value2, "couponFaceAmt");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountIsNull() {
            addCriterion("satisfied_amount is null");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountIsNotNull() {
            addCriterion("satisfied_amount is not null");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountEqualTo(BigDecimal value) {
            addCriterion("satisfied_amount =", value, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountNotEqualTo(BigDecimal value) {
            addCriterion("satisfied_amount <>", value, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountGreaterThan(BigDecimal value) {
            addCriterion("satisfied_amount >", value, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("satisfied_amount >=", value, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountLessThan(BigDecimal value) {
            addCriterion("satisfied_amount <", value, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("satisfied_amount <=", value, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountIn(List<BigDecimal> values) {
            addCriterion("satisfied_amount in", values, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountNotIn(List<BigDecimal> values) {
            addCriterion("satisfied_amount not in", values, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("satisfied_amount between", value1, value2, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andSatisfiedAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("satisfied_amount not between", value1, value2, "satisfiedAmount");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIsNull() {
            addCriterion("coupon_type is null");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIsNotNull() {
            addCriterion("coupon_type is not null");
            return (Criteria) this;
        }

        public Criteria andCouponTypeEqualTo(String value) {
            addCriterion("coupon_type =", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotEqualTo(String value) {
            addCriterion("coupon_type <>", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeGreaterThan(String value) {
            addCriterion("coupon_type >", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_type >=", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeLessThan(String value) {
            addCriterion("coupon_type <", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeLessThanOrEqualTo(String value) {
            addCriterion("coupon_type <=", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeLike(String value) {
            addCriterion("coupon_type like", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotLike(String value) {
            addCriterion("coupon_type not like", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIn(List<String> values) {
            addCriterion("coupon_type in", values, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotIn(List<String> values) {
            addCriterion("coupon_type not in", values, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeBetween(String value1, String value2) {
            addCriterion("coupon_type between", value1, value2, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotBetween(String value1, String value2) {
            addCriterion("coupon_type not between", value1, value2, "couponType");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIsNull() {
            addCriterion("Created_Stime is null");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIsNotNull() {
            addCriterion("Created_Stime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeEqualTo(Date value) {
            addCriterion("Created_Stime =", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotEqualTo(Date value) {
            addCriterion("Created_Stime <>", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeGreaterThan(Date value) {
            addCriterion("Created_Stime >", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Created_Stime >=", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeLessThan(Date value) {
            addCriterion("Created_Stime <", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeLessThanOrEqualTo(Date value) {
            addCriterion("Created_Stime <=", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIn(List<Date> values) {
            addCriterion("Created_Stime in", values, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotIn(List<Date> values) {
            addCriterion("Created_Stime not in", values, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeBetween(Date value1, Date value2) {
            addCriterion("Created_Stime between", value1, value2, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotBetween(Date value1, Date value2) {
            addCriterion("Created_Stime not between", value1, value2, "createdStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIsNull() {
            addCriterion("Modified_Stime is null");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIsNotNull() {
            addCriterion("Modified_Stime is not null");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeEqualTo(Date value) {
            addCriterion("Modified_Stime =", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotEqualTo(Date value) {
            addCriterion("Modified_Stime <>", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeGreaterThan(Date value) {
            addCriterion("Modified_Stime >", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Modified_Stime >=", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeLessThan(Date value) {
            addCriterion("Modified_Stime <", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeLessThanOrEqualTo(Date value) {
            addCriterion("Modified_Stime <=", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIn(List<Date> values) {
            addCriterion("Modified_Stime in", values, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotIn(List<Date> values) {
            addCriterion("Modified_Stime not in", values, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeBetween(Date value1, Date value2) {
            addCriterion("Modified_Stime between", value1, value2, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotBetween(Date value1, Date value2) {
            addCriterion("Modified_Stime not between", value1, value2, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andOrdernumLikeInsensitive(String value) {
            addCriterion("upper(ordernum) like", value.toUpperCase(), "ordernum");
            return (Criteria) this;
        }

        public Criteria andTransactionNumberLikeInsensitive(String value) {
            addCriterion("upper(transaction_number) like", value.toUpperCase(), "transactionNumber");
            return (Criteria) this;
        }

        public Criteria andDiscountBatchNoLikeInsensitive(String value) {
            addCriterion("upper(discount_batch_no) like", value.toUpperCase(), "discountBatchNo");
            return (Criteria) this;
        }

        public Criteria andCouponNameLikeInsensitive(String value) {
            addCriterion("upper(coupon_name) like", value.toUpperCase(), "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponTypeLikeInsensitive(String value) {
            addCriterion("upper(coupon_type) like", value.toUpperCase(), "couponType");
            return (Criteria) this;
        }

        public Criteria andRemarkLikeInsensitive(String value) {
            addCriterion("upper(remark) like", value.toUpperCase(), "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}